<include file="public:header" />
    
    
    
<div class="pad_lr_10">
	<div class="col_tab">
		<ul class="J_tabs tab_but cu_li">
            <li class="current">工资预估</li>	
            <li class="current">工资计算</li>
		</ul>
		<div class="J_panes">
			<div class="content_list pad_10">
 <table  width="100%" cellspacing="0" class="table_form">
           
      
            <tbody>
               <tr>
                <th  width="120">渠道</th>
                <td>
                    <if condition="$userInfo['storeChannel'] eq 1">
                        自有渠道
                    <else />
                        社会渠道
                    </if>
                </td>
               </tr>
               <tr>
                <th>
                    所在城市
                </th>
                <td>
                    {$cityName}
                </td>
               </tr>

               <tr>
                <th>
                    所在厅店
                </th>
                <td>
                    {$userInfo['storeName']}
                </td>
               </tr>               

              <tr>
                <th>
                    战略机型
                </th>
                <td>
                    {$wage['importentModel']}
                </td>
               </tr> 

               <tr>
                <th>
                    岗位工资
                </th>
                <td>
                    {$wage['postWage']}
                </td>
               </tr>                
               
                 
               
               
               <tr>
                <th>
                    绩效工资
                </th>
                <td>
                    {$wage['performance']}
                </td>
               </tr>
               
               <tr>
                <th>
                    单台提成
                </th>
                <td>
                    {$wage['importentModelPic']}
                </td>
               </tr>     
                         
                <tr>
                <th>
                    总工资
                </th>
                <td>
                    {$wage['total']}
                </td>
               </tr>                 
                              
            </tbody>
        </table>            
			</div>
            
    <div class="content_list pad_10 hidden">            
          <form action="/" method="get" id="info_form">
          <input type="hidden" name="g" value="admin" />
          <input type="hidden" name="a" value="actPay" />
          <input type="hidden" name="m" value="sales" />
          <table  width="100%" cellspacing="0" class="table_form">
            <tbody>
            <tr>
                <th  width="120">渠道 </th>
                <td>
                    <if condition="$userInfo['storeChannel'] eq 1">
                        自有渠道
                    <else />
                        社会渠道
                    </if>
                </td>
               </tr>
               <tr>
                <th>
                    所在城市
                </th>
                <td>
                    {$cityName}
                </td>
               </tr>

               <tr>
                <th>
                    所在厅店
                </th>
                <td>
                    {$userInfo['storeName']}
                </td>
               </tr>               

              <tr>
                <th>
                    战略机型
                </th>
                <td>
                    <input type="text" name="importModel" value="" />
                </td>
               </tr> 
               
              <tr>
                <th>
                    全机型
                </th>
                <td>
                    <input type="text" name="allModel" value="" />
                </td>
               </tr>               
               
              <tr>
                <th>
                    机型系数
                </th>
                <td>
                    <input type="text" name="modelRate" value="" />
                </td>
               </tr>
                              
                <tr>
                <th id="totalBox">
                    总工资
                </th>
                <td>
                    <input id="totalValue" type="text" value="0" disabled="" />
                </td>
               </tr>
               
            </tbody>
        </table>
        <button type="submit" class="btn btn-primary btn-lg btn-block">提交</button>
        </form>        
            </div>
        </div>
	</div>
</div>  
             
<include file="public:footer" />
<script>
$(document).ready(function(){
 	$.formValidator.initConfig({formid:"info_form",autotip:true});
	
	
	
	$('#info_form').ajaxForm({success:complate,dataType:'json'});
    function complate(result){
        if(result.status == 1){
            //$.dialog.get(result.dialog).close();
            //$.pinphp.tip({content:result.msg});
            //window.location.reload();
            $("#totalValue").val(result.data);
        } else {
            $.pinphp.tip({content:result.msg, icon:'alert'});
        }
    }   
    
$('ul.J_tabs').tabs('div.J_panes > div');    
});

</script>

</body>
</html>